/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}
/* Navigation */
.nav-container {
    margin-bottom: 60px;
}

.nav-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
}

.nav-item {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
    color: #888;
}
.nav-item a{
    color: #888;
    padding: 12px 24px;
    display: block;
}

.nav-item:hover {
    background: rgba(37, 37, 37, 0.9);
    border-color: #404040;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.95);
    color: #0a0a0a;
    border-color: #ffffff;
}
.nav-item.active a{
    color: #0a0a0a;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

@media (max-width: 1280px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.portfolio-card {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(42, 42, 42, 0.5);
    animation: fadeInUp 0.8s ease-out backwards;
}

.portfolio-card:nth-child(1) {
    animation-delay: 0.2s;
}

.portfolio-card:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(64, 64, 64, 0.8);
}

.card-image-container {
    position: relative;
    max-height: 320px;
    overflow: hidden;
    background: #1a1a1a;
}
.card-image-container img{
    width: 100%;
}

/* Compose Coffee Card */
.compose-coffee-card .card-image-container {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.compose-coffee-card .card-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.compose-coffee-card:hover .card-image-container::after {
    opacity: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1;
}

.logo-text {
    font-size: 42px;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-icon::before {
    content: '☕';
    font-size: 28px;
    filter: grayscale(0);
}

/* Hegrida Card */
.hegrida-card .card-image-container {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url("data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 320"><defs><linearGradient id="sky" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%2387CEEB;stop-opacity:1" /><stop offset="100%" style="stop-color:%2398D8E8;stop-opacity:1" /></linearGradient><linearGradient id="building" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%23E8E8E8;stop-opacity:1" /><stop offset="100%" style="stop-color:%23D0D0D0;stop-opacity:1" /></linearGradient></defs><rect width="800" height="320" fill="url(%23sky)"/><rect x="50" y="180" width="120" height="140" fill="url(%23building)"/><rect x="200" y="150" width="100" height="170" fill="white"/><rect x="350" y="200" width="150" height="120" fill="%23F5F5F5"/><rect x="550" y="160" width="130" height="160" fill="white"/><rect x="700" y="140" width="100" height="180" fill="%23E0E0E0"/><path d="M 0 120 Q 200 100 400 120 T 800 120 L 800 320 L 0 320 Z" fill="%232D5016" opacity="0.8"/></svg>");
    background-size: cover;
    background-position: center;
    filter: brightness(0.7) saturate(0.8);
}

/* Card Content */
.card-content {
    padding: 20px 24px;
    border-top: 1px solid rgba(42, 42, 42, 0.5);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.card-tags {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tag-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FFD700;
}

.tag-dot.dark {
    background: #4a4a4a;
}

.tag-text {
    font-size: 13px;
    color: #d6d6d6;
    font-weight: 500;
}

/* Hover Effects */
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.portfolio-card:hover .logo-container {
    animation: float 2s ease-in-out infinite;
}

/* Additional Cards for Demo */
.more-projects {
    margin-top: 60px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #ffffff;
}

/* Loading Animation */
@keyframes pulse {
    0%,
    100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

.loading-particles {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #666;
    animation: pulse 2s ease-in-out infinite;
    z-index: 0;
}
